package com.cls.business.mapper;

import com.cls.business.entity.TopicSubject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 *  Mapper
 *
 * @author wandering
 * @date 2020-11-10 09:31:16
 */
@Repository
public interface TopicSubjectMapper extends BaseMapper<TopicSubject> {
    @Delete("DELETE FROM biz_topic_subject_detail WHERE plan_id=#{planId} AND is_delete=0 ")
    int deleteByPlanId(@Param("planId") Long planId);
}
